package com.smiier.skin.net;

import java.io.Serializable;
import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.DoctorTreatmentProjectListTask.DoctorTreatmentProjectListRequest;
import com.smiier.skin.net.DoctorTreatmentProjectListTask.DoctorTreatmentProjectListResponse;
import com.smiier.skin.util.GlobalSettings;

/*
 * 医生治疗项目列表
 */
public class DoctorTreatmentProjectListTask
		extends
		NetTask<DoctorTreatmentProjectListRequest, DoctorTreatmentProjectListResponse> {
	public static class DoctorTreatmentProjectListRequest extends ORequest {
		public Long doctorid;
	}

	public static class DoctorTreatmentProjectListResponse extends
			ArrayList<DoctorTreatmentProjectItem> implements INoProguard {

	}

	public static class DoctorTreatmentProjectItem implements INoProguard,
			Serializable {

		public int id;
		public String hospital;
		public String name;
		public int original_price;
		public int discount_price;
		public String url;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL_TREATMENT
				+ "Client/TreatmentProject/ajaxdoctortreatmentproject";
		mRequestMethod = METHOD_POST;
	}

}
